package nuc.edu.cn.anno;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import nuc.edu.cn.validation.StateValidation;

import java.lang.annotation.*;

@Documented
@Constraint(
        validatedBy = {StateValidation.class}
)
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface State {
//    校验失败的提示信息
    String message() default "{org.hibernate.validator.constraints.URL.message}";
//指定分组
    Class<?>[] groups() default {};
//获取State注解的附加信息
    Class<? extends Payload>[] payload() default {};

}
